package cn.com.blueInfo.bpm.template.entity;

import cn.com.blueInfo.bpm.common.entity.BaseEntity;
import cn.com.blueInfo.bpm.template.enums.ParallelGatewayType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 并行网关表
 * @author suxch
 * @since 2025-08-24 01:41:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mc_uniflow_parallel_gateway", autoResultMap = true)
@Schema(description = "并行网关表")
public class ParallelGateway extends BaseEntity {

    /** ID */
    @TableId(type = IdType.INPUT)
    @Schema(description = "ID")
    private Long id;
    /** 流程模板ID */
    @Schema(description = "流程模板ID")
    private Long processId;
    /** 网关编码（模板内唯一） */
    @Schema(description = "网关编码（模板内唯一）")
    private String gatewayCode;
    /** 网关名称（如“。。。开始”“。。。结束”） */
    @Schema(description = "网关名称（如“。。。开始”“。。。结束”）")
    private String gatewayName;
    /** 网关类型：PARALLEL_START-并行开始，拆分多个分支；PARALLEL_END-并行结束，合并多个分支 */
    @Schema(description = "网关类型：PARALLEL_START-并行开始，拆分多个分支；PARALLEL_END-并行结束，合并多个分支")
    private ParallelGatewayType gatewayType;
    /** 上一节点ID */
    @Schema(description = "上一节点ID")
    private Long prevNodeId;
    /** 合并条件（PARALLEL_END生效，。。。分支完成后合并） */
    @Schema(description = "合并条件（PARALLEL_END生效，。。。分支完成后合并）")
    private String joinCondition;

}
